home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / mac / files / ID99MENU.DIR / 00200_ID logo spin script.ls < prev    next >
Encoding:
Text File  |  1999-04-29  |  826 b   |  31 lines

  1. property s, mypercent, mywidth, getgoing, myreviewslice
  2. global tickrate, stagedone
  3.  
  4. on beginSprite me
  5.   s = me.spriteNum
  6.   mypercent = 0
  7.   mywidth = the width of sprite s
  8.   getgoing = the ticks + ((s - 144) * 10)
  9.   myname = member(the memberNum of sprite s).name
  10.   myreviewslice = the number of member ("review" && word 2 of myname)
  11. end
  12.  
  13. on prepareFrame me
  14.   if getgoing < the ticks then
  15.     if mypercent < 100 then
  16.       set the width of sprite s to float(mywidth) / 100 * (100 - mypercent)
  17.       mypercent = min(100, mypercent + tickrate)
  18.     else
  19.       set the memberNum of sprite s to myreviewslice
  20.       set the width of sprite s to float(mywidth) / 100 * (mypercent - 100)
  21.       mypercent = min(200, mypercent + tickrate)
  22.     end if
  23.   end if
  24. end
  25.  
  26. on donestage me
  27.   if mypercent < 200 then
  28.     stagedone = 0
  29.   end if
  30. end
  31.